package com.wlts.wzy.KSUserModule.entity;

import java.time.LocalDateTime;
import java.util.Date;
import com.wlts.wzy.Base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 快手授权信息
 * </p>
 *
 * @author zhiyong
 * @since 2021-02-01
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="KsOauth对象", description="快手授权信息")
public class KsOauth extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户名")
    private String userUuid;

    @ApiModelProperty(value = "令牌")
    private String accessToken;

    @ApiModelProperty(value = "刷新令牌")
    private String refreshToken;

    @ApiModelProperty(value = "openId")
    private String openId;

    @ApiModelProperty(value = "有效时长")
    private Long expiresIn;

    @ApiModelProperty(value = "token失效时间")
    private LocalDateTime tokenOverTime;

    @ApiModelProperty(value = "token状态 0有效，1失效")
    private Integer tokenStatus;

    @ApiModelProperty(value = "通知状态 1已通知 2未通知")
    private Integer messageStatus;


}
